import request from '@/utils/request'

// 查询basicMessage列表
export function listBasicmessage(query) {
  return request({
    url: '/teacher/basicmessage/list',
    method: 'get',
    params: query
  })
}

// 查询basicMessage详细
export function getBasicmessage(teacherId) {
  return request({
    url: '/teacher/basicmessage/' + teacherId,
    method: 'get'
  })
}

// 新增basicMessage
export function addBasicmessage(data) {
  return request({
    url: '/teacher/basicmessage/add',
    method: 'post',
    data: data
  })
}

// 修改basicMessage
export function updateBasicmessage(data) {
  return request({
    url: '/teacher/basicmessage/update',
    method: 'post',
    data: data
  })
}

// 删除basicMessage
export function delBasicmessage(teacherId) {
  return request({
    url: '/teacher/basicmessage/' + teacherId,
    method: 'post'
  })
}
